@extends('layout.index')
@section('title','网站配置')
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">网站配置</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="dataTable_wrapper">
                    <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
	                    <form action="{{url('/admin/goods/index')}}" method="get">
		                    <div class="row">
			                    <div class="col-sm-6">
				                    <div class="dataTables_length" id="dataTables-example_length">
				                   
				                    </div>
		                    	</div>
		                    	
		                    </div>
	                    </form>
	                    </div>
	                    	<div class="row">
		                    	<div class="col-sm-12">
			                    	<table id="dataTables-example" class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="dataTables-example_info">
				                        <thead>
					                        <tr role="row">
						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>

						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">关键字</th>

						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">logo</th>

						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">版权</th>

						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">站点状态</th>

						                        <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">描述</th>

						                         <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" style="width: 60px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">操作</th>
						                        
					                        </tr>  
					                        <tr style="color:#f39;font-size:22px">
					                        @foreach($data as $k => $v)

												<td>{{$v->id}}</td>
												<td>{{$v->keywords}}</td>
												<td><img src="{{$v->logo}}" width="150px" height="120"></td>
												<td>{{$v->copy}}</td>
												<td>
													@if($v->status==0)
													开启
													@elseif($v->status==1)
													关闭
													@endif       
												</td>
												<td>{{$v->represent}}</td>
					                        @endforeach 
					                        <td class="center">
							                            
							                            <a href="/admin/config/edit?id={{$v->id}}" class="btn-lg btn-success btn-circle" type="button">修改</a>
						                            </td>
							                 </tr>
					                    </thead>
				                        <tbody>   
					                       
						                           
						                	
					                    </tbody>
				                    </table>
			                    </div>
		                    </div>
	                      	<div class="row"> 
							   	<div class="col-sm-8">
								    <div class="dataTables_paginate paging_simple_numbers" id="dataTables-example_paginate">
									    
								    </div>
						    	</div>
							</div>  	
 				 		</div>
                	</div>
                	<!-- /.table-responsive -->
           		</div>
            	<!-- /.panel-body -->
        	</div>
        	<!-- /.panel -->
    	</div>
    	<!-- /.col-lg-12 -->
	</div>
</div>
@endsection


